using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class LinkPoint : MonoBehaviour
{

    Vector3 offset;

    // Start is called before the first frame update
    void Start()
    {
        Transform parentTransform = transform.parent;
        offset = parentTransform.position - transform.position;
    }

    // Update is called once per frame
    void Update()
    {
            
    }

    private void LateUpdate()
    {
        transform.parent.position = transform.position + offset;
    }
}
